<html>
<head><meta charset="utf-8"><title>warnings: make &quot;help&quot; messages more prominent · clippy · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/index.html">clippy</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/warnings.3A.20make.20.22help.22.20messages.20more.20prominent.html">warnings: make &quot;help&quot; messages more prominent</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="220468832"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/warnings%3A%20make%20%22help%22%20messages%20more%20prominent/near/220468832" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/warnings.3A.20make.20.22help.22.20messages.20more.20prominent.html#220468832">(Dec 19 2020 at 12:56)</a>:</h4>
<div class="codehilite"><pre><span></span><code>warning: this returns a `Result&lt;_, ()&gt;
  --&gt; rls-rustc/src/lib.rs:28:1
   |
28 | pub fn run() -&gt; Result&lt;(), ()&gt; {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(clippy::result_unit_err)]` on by default
   = help: use a custom Error type instead
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err

warning: 1 warning emitted
</code></pre></div>
<p>the <code> = help: use a custom Error type instead</code> is totally wedged in there, could we move it closer to the actual warning?</p>



<a name="220468985"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/warnings%3A%20make%20%22help%22%20messages%20more%20prominent/near/220468985" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Phil H <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/warnings.3A.20make.20.22help.22.20messages.20more.20prominent.html#220468985">(Dec 19 2020 at 13:01)</a>:</h4>
<p>Hm, I think that might be tricky, because the 'note' comes from rustc</p>



<a name="220469089"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/warnings%3A%20make%20%22help%22%20messages%20more%20prominent/near/220469089" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Phil H <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/warnings.3A.20make.20.22help.22.20messages.20more.20prominent.html#220469089">(Dec 19 2020 at 13:03)</a>:</h4>
<p>(That particular note is also only shown for the first occurrence of a lint)</p>



<a name="220469212"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/warnings%3A%20make%20%22help%22%20messages%20more%20prominent/near/220469212" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Phil H <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/warnings.3A.20make.20.22help.22.20messages.20more.20prominent.html#220469212">(Dec 19 2020 at 13:06)</a>:</h4>
<p>Looks like all other lints (including rust lints) have the same problem</p>



<a name="220469230"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/warnings%3A%20make%20%22help%22%20messages%20more%20prominent/near/220469230" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Phil H <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/warnings.3A.20make.20.22help.22.20messages.20more.20prominent.html#220469230">(Dec 19 2020 at 13:07)</a>:</h4>
<p>If you run <code>rg 'on by default' -C 1 src/test/ui/</code> on the rust repo you can find some rust lints with this problem as well</p>



<a name="220469260"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/warnings%3A%20make%20%22help%22%20messages%20more%20prominent/near/220469260" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Phil H <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/warnings.3A.20make.20.22help.22.20messages.20more.20prominent.html#220469260">(Dec 19 2020 at 13:08)</a>:</h4>
<p>might be worth filing an issue there <span aria-label="smile" class="emoji emoji-1f642" role="img" title="smile">:smile:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>